home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
disk
/
kutil13.zip
/
KEYIN.TXT
< prev
next >
Wrap
Text File
|
1995-12-06
|
6KB
|
192 lines
K-TOOLS UTILITIES
Copyright (c) 1994-95 by Rob McDonell, ARK ANGLES
All Rights Reserved
KEYIN - Key In 1.3
This utility enters keystrokes into the keyboard buffer, especially
useful for automating responses in batch files. This works in the same
way as the .KEYIN macro command in K-Tools Desk Caddy and Workplace.
USAGE:
KEYIN [parm [parm [..]]]
where: parm is a string of normal and/or special characters
Normal characters, that is a-z, A-Z, 0-9 and most other symbols are put
directly into the keyboard buffer as is, thereby covering almost all of the
common "typewriter" keys.
Special characters are those that cannot be entered as normal characters,
such as function keys, cursor movement keys and control codes.
Note that any spaces in the KEYIN parameter will be ignored. If you want
to enter a space character into the keyboard buffer, use the special
character underline.
Note also that the keyboard buffer can usually only hold about 15 keystrokes
at one time. Any additional characters entered will be ignored.
SPECIAL CHARACTERS:
~ (Tilde) will generate the <Enter> key.
_ (Underline) will generate the <Space> key.
/ (Slash) will generate the menu <F10> key.
/n (Slash followed by a single digit) will generate a function key:
/1 <F1>
/2 <F2>
/3 <F3>
/4 <F4>
/5 <F5>
/6 <F6>
/7 <F7>
/8 <F8>
/9 <F9>
/0 <F10>
!n (Exclamation followed by a digit) will generate a shifted function key:
!1 <Shift+F1>
!2 <Shift+F2>
!3 <Shift+F3>
!4 <Shift+F4>
!5 <Shift+F5>
!6 <Shift+F6>
!7 <Shift+F7>
!8 <Shift+F8>
!9 <Shift+F9>
!0 <Shift+F10>
@z (At sign followed by a single character or digit) will generate <Alt>
plus that character or digit. The character may be in upper or lower
case. The following combinations are also valid:
@_ <Alt+Space>
@= <Alt+Equals>
@- <Alt+Minus>
@/1 <Alt+F1>
@/2 <Alt+F2>
@/3 <Alt+F3>
@/4 <Alt+F4>
@/5 <Alt+F5>
@/6 <Alt+F6>
@/7 <Alt+F7>
@/8 <Alt+F8>
@/9 <Alt+F9>
@/0 <Alt+F10>
^x (Hat followed by a single character) will generate <Ctrl> plus that
character. The character may be in upper or lower case.
\nnn (Backslash followed by a three digit number) will generate a character
with ASCII code nnn. This allows any character, including those
otherwise unprintable or inaccessible by the keyboard, to be entered.
\x (Backslash followed by a single character) will generate one of the
cursor movement keys. The character may be in upper or lower case:
\B <Bksp> (backspace)
\C <Esc> (escape)
\I <Ins> (insert)
\D <Del> (delete)
\H <Home>
\E <End>
\P <PgUp> (page up)
\N <PgDn> (page down)
\L <Left> (cursor left)
\R <Right> (cursor right)
\S <Shift+Tab> (reverse tab)
\T <Tab> (forward tab)
\U <Up> (cursor up)
\W <Down> (cursor down)
\X <Shift+Del>
\Y <Shift+Ins>
Any other character following a backslash is treated literally. For
example, "\Q" is just the same as "Q". This allows the other special
characters above to be used normally:
\~ literal tilde
\_ literal underline
\/ literal slash
\! literal exclamation mark
\@ literal at sign
\^ literal hat
\\ literal backslash
Other control key combinations are also valid:
^~ <Ctrl+Enter>
^\B <Ctrl+Bksp>
^\I <Ctrl+Ins>
^\D <Ctrl+Del>
^\H <Ctrl+Home>
^\E <Ctrl+End>
^\P <Ctrl+PgUp>
^\N <Ctrl+PgDn>
^\L <Ctrl+Left>
^\R <Ctrl+Right>
^/1 <Ctrl+F1>
^/2 <Ctrl+F2>
^/3 <Ctrl+F3>
^/4 <Ctrl+F4>
^/5 <Ctrl+F5>
^/6 <Ctrl+F6>
^/7 <Ctrl+F7>
^/8 <Ctrl+F8>
^/9 <Ctrl+F9>
^/0 <Ctrl+F10>
All other alphabetic, numeric, and punctuation characters are used
exactly as they are.
EXAMPLES:
KEYIN deskcad~^omyfile~ will run Desk Caddy and open MYFILE on the
screen. Note the use of the tilde for
<Enter> and the hat for a control key.
KEYIN wipe_*.bak~y~ will run WIPE to obliterate all the *.BAK
files in the current directory and
automatically enter the 'y' response. Note
the use of the underline for a space.
KEYIN rmtree_a:\\~y~ will run RMTREE to remove the contents of
the root directory of drive A: and
automatically enter the 'y' response. Note
the use of the two backslashes in a row to
get a single backslash.
Run KEYIN with no parameters or "?" or "/?" to display simple help and
registration information.
REGISTRATION:
This program is part of the K-TOOLS UTILITIES shareware package. To keep
using it after the 60 day trial period you must register, which costs only
A$15 per utility or A$29, US$24, £15, Dm40, ¥2400 for the whole collection.
Author: Rob McDonell
ARK ANGLES
P O Box 190 (61 Oaklands Rd)
Hazelbrook NSW 2779
AUSTRALIA
Phone: Intl+61-47-588100
Fax: Intl+61-47-588638
Compuserve: 100237,141
Internet: 100237.141@compuserve.com